<?php

namespace App\Admin\Extensions\Column\User;

use Encore\Admin\Admin;
use Encore\Admin\Grid\Displayers\AbstractDisplayer;

class Gender extends AbstractDisplayer
{
    public function display($placement = 'left')
    {
        switch ($this->value) {
            case 1:
                return '男';
            case 2:
                return '女';
            default:
                return "default";
                break;
        }
    }
}
